home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
children
/
states.exe
/
S_INSTAL.BAT
next >
Wrap
DOS Batch File
|
1990-01-06
|
6KB
|
146 lines
echo off
rem
rem S_INSTAL.BAT for The States
rem
cls
if x%1==x goto di-rections
if x%2==x goto di-rections
if not exist %1STATE_B.EXE goto error
if not exist %1STATE_A.EXE goto error
if not exist %1S_README.1ST goto error
IF %2==a: goto small-disk
if %2==A: goto small-disk
if %2==b: goto small-disk
if %2==B: goto small-disk
goto big-disk
rem Display Install help if drive data are wrong
:di-rections
echo ╒════════════════════════╗ ╔════════════════════════════════════╕
echo │ Installation Procedure ║ ║ Syntax: S_INSTAL drive1 drive2 │
echo ├────────────────────────╨───────╨────────────────────────────────────┤
echo │ The Install procedure must be from one drive to another. │
echo │ The distribution disk must be placed in drive1. The Install │
echo │ program will expand the files to drive2. │
echo ╞═════════════════════════════════════════════════════════════════════╡
echo │ If you use a Dual Floppy 360k system you will need to prepare two │
echo │ formatted diskettes. Label one of the disks STATE A and the 2nd │
echo │ STATE B. When ready place the distribution disk in drive A: │
echo │ type .... S_INSTAL A: B: of from B: S_INSTAL B: A: │
ECHO ╞═════════════════════════════════════════════════════════════════════╡
echo │ For a Hard Disk or a 720k+ system you will require at least 700K. │
echo │ A \STATE subdirectory will be created on a HD. When ready place │
echo │ the distribution disk in drive A: (or B:) and type "from" - "to": │
echo │ S_INSTAL A: C: (program material from A: to hard disk C:) or │
echo │ S_INSTAL B: C: (program material from B: to hard disk C:) or │
echo │ S_INSTAL B: A: (program material from B: to 720K+ disk A:). │
echo ╞═════════════════════════════════════════════════════════════════════╡
echo │ NOTE: The INSTALL batch file will supply supplemental instructions.│
echo ╘═════════════════════════════════════════════════════════════════════╛
pause
cls
goto exit-bat
rem *** routine for hard disk installation procedure ***
:big-disk
cls
echo ╒══════════════════════════════════════════════════════════╕
echo │ You have chosen to install the STATE files │
echo │ from drive "%1" to drive "%2" fixed disk. │
echo ├──────────────────────────────────────────────────────────┤
echo │ Remember, the Destination drive %2 must have 700K free. │
echo ├──────────────────────────────────────────────────────────┤
echo │ If you wish to change your mind press "CTRL BREAK" now. │
echo ├──────────────────────────────────────────────────────────┤
echo │ Otherwise .... │
echo ╘══════════════════════════════════════════════════════════╛
echo:
pause
%2
cls
echo ┌──────────────────────────────────────┐
echo │ Creating \STATE directory on "%2". │
echo └──────────────────────────────────────┘
cd \
md STATE
cd \STATE
echo ┌────────────────────────────────────────┐
echo │ Extracting files ................. │
echo │ This may take a few moments.... │
echo └────────────────────────────────────────┘
COPY %1S_README.1st %2
%1STATE_A
%1STATE_B
dir /w %2
pause
goto done
rem
rem *** Installation procedure for 360K - 720k+ diskette ***
rem
:small-disk
cls
echo ╔══════════╦═════════════════════════════════════════════════════════╗
echo ║ FLOPPY ║ You have chosen to install the files from Drive %1 ║
echo ║ INSTALL ║ to a 360K or 720k+ disk on Drive %2. ║
echo ╠══════════╩═════════════════════════════════════════════════════════╣
echo ║ Remember - you should have diskettes formatted and prepared ║
echo ║ labeled STATE-A (& STATE-B). Press CTRL-BREAK if not ready, else ║
echo ╠════════════════════════════════════════════════════════════════════╣
echo ║ Put distribution disk in drive %1 & Disk STATE-A in Drive %2 & ..║
echo ╚════════════════════════════════════════════════════════════════════╝
echo:
pause
cls
echo ┌────────────────────────────────────────┐
echo │ Extracting QUIZSTATE & TEST files .... │
echo │ This may take a few moments ......... │
echo └────────────────────────────────────────┘
%2
COPY %1S_README.1ST %2
%1STATE_A
dir /w %2
pause
cls
echo ╔═══════════════════════════════════════════════════════════════╗
echo ║ If a 360k disk: Remove STATE-A disk from drive %2 ║
echo ║ Replace it with the STATE-B disk, or ... ║
echo ║===============================================================║
echo ║ If a 720k+ disk: No need to remove the disk. Just ......... ║
echo ╚═══════════════════════════════════════════════════════════════╝
echo:
pause
echo ┌────────────────────────────────────────┐
echo │ Extracting HISTORY files. │
echo │ This may take a few moments ......... │
echo └────────────────────────────────────────┘
%1STATE_B
dir /w %2
pause
:done
cls
echo ┌─────────────────────────────────────────────────────────┐
echo │ BRAVO ... The installation procedure has been complete! │
echo └─────────────────────────────────────────────────────────┘
echo:
echo:
echo ╔═════════════════════════════╤═════════════════════════════════╗
echo ║ The document may be printed.│ : PRINT USTATE.DOC ║
echo ║ or listed to the screen.....│by typing : TYPE USTATE.DOC ║
echo ░---------------------------------------------------------------░
echo ║ The programs may be run.....│by typing : QUIZSTATE ║
ECHO ║ OR .........................│ : READSTAT ║
echo ╚═════════════════════════════╧═════════════════════════════════╝
GOTO EXIT-BAT
:ERROR
CLS
echo
echo
echo d
echo:
echo ************************************************************
ECHO * We have not found the correct files on drive %1. Please *
echo * place the distribution disk in drive %1 and start over. *
echo ************************************************************
echo
pause
:exit-bat